<?php
namespace app;

// 应用请求对象类
class Request extends \think\Request
{
    public function subIn(array $subs = [])
    {
        $sub = strchr($this->rootDomain(), '.', true);
        return in_array($sub, $subs);
    }
}
